<template>
	<view>
		<view class="enroll-item" v-for="item in 5" :key="item">
			<view class="enroll-head">
				<view class="enroll-img">
					<image src="../../static/logo.png" mode=""></image>
				</view>
				<view class="enroll-content">
					<view class="enroll-content__tlite">
						常德万福温泉
					</view>
					<view class="enroll-content__des">
						张家界万福温泉旅游度假区,玩张家界森林公园+玻璃桥+凤凰...
					</view>

				</view>
				<view class="much">
					<view class="much-text">
						<text>¥</text>49.00
					</view>
				</view>
			</view>
			<view class="enroll-operation">
				<view class="handleBtn" @click="Transfer">
					转增
				</view>
				<view class="handleBtn">
					退款
				</view>
			</view>
			<view class="enroll-foot">
				<view class="enroll-time">
					<text>2020.12.9</text>-<text>2020.1.9</text>
				</view>
				<view class="useBtn">
					立即使用
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods:{
			Transfer(){
				uni.navigateTo({
					url: '/pages/transfer/transfer'
				})
			}
		}
	}
</script>

<style lang="scss">
	.enroll-item {
		margin-top: 10px;
		background-color: #fff;
		border-radius: 5px;
		padding: 10px;
		position: relative;

		.enroll-head {
			display: flex;

			.enroll-img {
				flex-shrink: 0;
				width: 80px;
				height: 80px;
				margin-right: 10px;

				image {
					width: 100%;
					height: 100%;
				}
			}

			.enroll-content {
				display: flex;
				flex-direction: column;
				line-height: 1.5;
				margin-right: 10px;

				.enroll-content__tlite {
					font-size: 15px;
				}

				.enroll-content__des {
					font-size: 12px;
					color: #999;
				}
			}

			.much {
				.much-text {
					font-size: 15px;

					text {
						font-size: 12px;
						margin-right: 5px;
					}
				}
			}
		}

		.enroll-operation {
			display: flex;
			justify-content: flex-end;

			.handleBtn {
				box-shadow: rgb(153, 153, 153) 0px 0px 0px 1px inset;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				line-height: 16px;
				display: flex;
				color: rgb(102, 102, 102);
				height: 20px;
				width: 50px;
				font-size: 13px;
				justify-content: center;
				align-items: center;
				max-width: none;
				border-radius: 15px;
				margin-right: 9px;
			}
		}

		.enroll-foot {
			margin-top: 10px;
			display: flex;
			justify-content: space-between;
			align-items: center;

			.enroll-time {
				font-size: 12px;
				color: #666;
			}

			.useBtn {
				box-shadow: #ff5500 0px 0px 0px 1px inset;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				line-height: 16px;
				display: flex;
				color: rgb(102, 102, 102);
				height: 28px;
				width: 85px;
				font-size: 13px;
				justify-content: center;
				align-items: center;
				max-width: none;
				border-radius: 15px;
				margin-right: 9px;
				color: #ff5500;
			}
		}
	}
</style>
